package com.yue.spdatasource.service.impl;

import com.yue.spdatasource.annotation.DsType;
import com.yue.spdatasource.domain.User;
import com.yue.spdatasource.mapper.UserMapper;
import com.yue.spdatasource.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public User findUser(){
        return userMapper.findUser();
    }
    @DsType("second")
    public User findUser2(){
        return userMapper.findUser();
    }
}
